package com.xqboss.apps.enums.nft;

/**
 * 藏品等级
 *
 * @author Administrator
 */

public enum TargetTypeEnum {
    /**
     * 其他藏品
     */
    OTHER(8),
    /**
     * 宠物藏品
     */
    PET(9);

    public int value;

    TargetTypeEnum(int value) {
        this.value = value;
    }

    private TargetTypeEnum type() {
        return this;
    }

    public static TargetTypeEnum getType(int value) {
        TargetTypeEnum[] enums = values();
        for (TargetTypeEnum enumItem : enums) {
            if (enumItem.value == value) {
                return enumItem.type();
            }
        }
        return null;
    }
}
